using System;

namespace CodeGame
{
#if WINDOWS || XBOX
    static class Program
    {
        public static bool IsServer = false;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                if (args[0] == "-server")
                {
                    IsServer = true;
                    DedicatedServer.Start();
                    Environment.Exit(0);
                }
            }

            using (MainGame game = new MainGame())
            {
                game.Run();
            }
        }
    }
#endif
}

